Merchant Order Updates
1mg requires an Order Update webhook that is needed to sending order status updates to merchant partners. This webhook allows merchants to synchronize the order status in their system with TATA 1mg's order processing. This guide outlines the various status codes and provides instructions on how to set up the webhook for receiving updates.
Different type of order status
Status Code | Status Name |
---|---|
20 | Vendor Stock Allocation Failure |
25 | To Be Delivered |
30 | Out for Delivery |
40 | Delivered |
45 | Deliver Again |
95 | Cancellation Initiated |
99 | Cancelled |
100 | Waiting For Rx |
110 | Waiting For Digitization |
120 | Vendor Stock Allocation |
130 | Packaging |
131 | Stock Arrangement |
132 | Vendor Packaging |
140 | Request for Return and Refund |
141 | Out for Return and Refund |
142 | Returned and Refunded |
160 | S1 Accepted And Validation |
170 | Waiting For Fraud Detection |
180 | Waiting for Online Payment - Occurs when in a COD |
Webhook Setup
To receive order updates from TATA 1mg, you'll need to provide a POST API endpoint that TATA 1mg can call asynchronously. Here are the key details to consider when setting up this webhook:
- API Endpoints: Decide on the appropriate endpoint where you want to receive these updates.
- Error Handling: Define the sample response payloads in case of non-200 HTTP status codes.
- Authentication: We allow using token-based authentication via header, and you’ll need to share the token with TATA 1mg.
Order Send Status API
We need a POST API that will be used by us to send order updates at merchant end. This API is supposed to work in async form and does not require an specific set of response from the webhook. But we require a format where you response with a "status" param along with a correct status code.
Example API
If the status code is less than 200 or above 300 then the update will be considered as failed and we will retry the same update after some time.
Endpoint: /update-status/
Method: POST
Payload:
{
{
"grouped_orders": [
{
"order_id": "PO29520488322536",
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 697.98,
"cashback_earned": 0,
"coupon_discount": 36.71,
"current_mrp": 697.94,
"discounted_mrp": 681.9,
"mode": "ONLINE",
"online_collected": 652.4,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 652.3599999999999,
"shipping_charges": 7.17,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": [
{
"amount": 40,
"display_text": "Rapid Delivery Fee",
"id": "5f7596da5c9d823a8a25704b"
}
],
"cashback_refund_due": 0
},
"eta": {
"eta_from": 1604837077, // could have float/Decimal value
"eta_to": 1604954709 //could have float/Decimal value
},
"created": 1563366689,
"updated": 1563366689,
"invoice_data": {},
"invoice": {
"shipping": "url",
"order": "url"
},
"order_status": {
"status_id": 130,
"sub_title": "Order Placed",
"title": "Your order is being processed by our pharmacy partner A.S.Medicals"
},
"shipment_detail": {
"delivery_partner_name": null,
"tracking_url": null,
"tracking_number": null
},
"skus": [
{
"pack_size_label": "strip of 10 tablets",
"normalized_quantity": 2,
"offered_price": 15.19,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "529785",
"sku_type": "OTC",
"mrp": 10,
"name": "Iomag-TH Tablet"
},
{
"pack_size_label": "bottle of 200 ml Syrup",
"normalized_quantity": 1,
"offered_price": 109,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "135546",
"name": "Himalaya Liv.52 Syrup",
"sku_type": "OTC",
"mrp": 10
}
]
}
],
"prescriptions": [
{
"url": "https://url.com",
"status": "In-progress"
}
],
"group_order_id": "PO19719451082",
"user": {
"email": "[email protected]",
"contact_number": '1234567890'
},
"delivery_address": {
"address_type": "home",
"city": "Bengaluru",
"contact_number": "1234567890",
"country": "INDIA",
"landmark": "",
"latitude": 12.8845097,
"locality": null,
"locality2": null,
"longitude": 77.6035522,
"name": "Mr USER1",
"pincode": "560076",
"state": "Karnataka",
"street1": "N",
"street2": "Ranjan11"
},
"merchant_order_id": "PO122434"
}
}
Response (200 OK Case):
{
"status": "SUCCESS", // Can be SUCCESS / PENDING / FAILED
"message": "Order Updated"
}
Request & Response Parameters Explained -
status: <text> Enum with values (SUCCESS, FAILED). Merchant team to add/update more statuses if exists.
message => <text> Any random message
Order Status Update Web Hooks Payload Description(s)
Intro
These WEBHOOKS are call backs setup to respond with payload from the 1mg Back End when an external party tries to integrate with us.
API: api.1mg.com/someapi
Packaging
Packaging
{
"result": {
"grouped_orders": [
{
"order_id": "PO29520488322536",
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 697.98,
"cashback_earned": 0,
"coupon_discount": 36.71,
"current_mrp": 697.94,
"discounted_mrp": 681.9,
"mode": "ONLINE",
"online_collected": 652.4,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 652.3599999999999,
"shipping_charges": 7.17,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": [
{
"amount": 40,
"display_text": "Rapid Delivery Fee",
"id": "5f7596da5c9d823a8a25704b"
}
],
"cashback_refund_due": 0
},
"eta": {
"eta_from": 1604837077, // could have float/Decimal value
"eta_to": 1604954709 //could have float/Decimal value
},
"created": 1563366689,
"updated": 1563366689,
"invoice_data": {},
"invoice": {
"shipping": "url",
"order": "url"
},
"order_status": {
"status_id": 130,
"sub_title": "Order Placed",
"title": "Your order is being processed by our pharmacy partner A.S.Medicals"
},
"shipment_detail": {
"delivery_partner_name": null,
"tracking_url": null,
"tracking_number": null
},
"skus": [
{
"pack_size_label": "strip of 10 tablets",
"normalized_quantity": 2,
"offered_price": 15.19,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "529785",
"sku_type": "OTC",
"mrp": 10,
"name": "Iomag-TH Tablet"
},
{
"pack_size_label": "bottle of 200 ml Syrup",
"normalized_quantity": 1,
"offered_price": 109,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "135546",
"name": "Himalaya Liv.52 Syrup",
"sku_type": "OTC",
"mrp": 10
}
]
}
],
"prescriptions": [
{
"url": "https://url.com",
"status": "In-progress"
}
],
"group_order_id": "PO19719451082",
"user": {
"email": "[email protected]",
"contact_number": '1234567890'
},
"delivery_address": {
"address_type": "home",
"city": "Bengaluru",
"contact_number": "1234567890",
"country": "INDIA",
"landmark": "",
"latitude": 12.8845097,
"locality": null,
"locality2": null,
"longitude": 77.6035522,
"name": "Mr USER1",
"pincode": "560076",
"state": "Karnataka",
"street1": "N",
"street2": "Ranjan11"
},
"merchant_order_id": "PO122434"
}
}
Split Order
Split Order
```
{
"result": {
"grouped_orders": [
{
"created": 1563366689,
"eta": {
"eta_from": 0, // could have float/Decimal value
"eta_to": 1604954709 // could have float/Decimal value
},
"invoice": {
"shipping": null,
"order": "url"
},
"invoice_data": {
"013879376": {
"skus": [
{
"mrp": 30.84,
"name": "Vitamin A Chewable Tablet",
"quantity": 4,
"onemg_sku_id": "261367"
}
],
"doctor_name": "Hiramay Pushpayastha",
"patient_name": "Rishiraj",
"invoice_url": "https://url.com"
},
"013879377": {
"skus": [
{
"mrp": 203.7,
"name": "Tolol -XR 25 Tablet",
"quantity": 6,
"onemg_sku_id": "126711"
}
],
"doctor_name": "Hiramay Pushpayastha",
"patient_name": "H purkayastha",
"invoice_url": "https://url.com"
}
},
"order_id": "PO19719451082",
"order_status": {
"status_id": 25,
"sub_title": "Order Packed",
"title": "Ready for Dispatch. Your order has been packed by our pharmacy partner House of pharma and is ready for dispatch."
},
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 697.98,
"cashback_earned": 0,
"cashback_refund_due": 0,
"coupon_discount": 36.71,
"current_mrp": 697.94,
"discounted_mrp": 681.9,
"mode": "ONLINE",
"online_collected": 652.4,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 652.3599999999999,
"shipping_charges": 7.17,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": [
{
"amount": 40,
"display_text": "Rapid Delivery Fee",
"id": "5f7596da5c9d823a8a25704b"
}
]
},
"shipment_detail": {
"delivery_partner_name": "1mg",
"tracking_url": null,
"tracking_number": "PO19719451082626",
"delivery_contact_name": null,
"delivery_contact": null
},
"skus": [
{
"mrp": 10,
"name": "Himalaya Liv.52 DS Syrup",
"normalized_quantity": 1,
"offered_price": 181,
"pack_size_label": "bottle of 200 ml Syrup",
"prescription_required": false,
"prescription_status": "Ready for processing",
"prescription_verified": false,
"sku_id": "210496",
"sku_type": "OTC"
}
],
"updated": 1563366689
},
{
"created": 1563366689,
"eta": {
"eta_from": 1604837077, // could have float/Decimal value
"eta_to": 1604954709 // could have float/Decimal value
},
"invoice": {
"shipping": null,
"order": null
},
"invoice_data": {},
"order_id": "PO29520488322536",
"order_status": {
"status_id": 130,
"sub_title": "Order Placed",
"title": "Your order is being processed by our pharmacy partner A.S.Medicals"
},
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 697.98,
"cashback_earned": 0,
"coupon_discount": 36.71,
"current_mrp": 697.94,
"discounted_mrp": 681.9,
"mode": "ONLINE",
"online_collected": 652.4,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 652.3599999999999,
"shipping_charges": 7.17,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": [
{
"amount": 40,
"display_text": "Rapid Delivery Fee",
"id": "5f7596da5c9d823a8a25704b"
}
],
"cashback_refund_due": 0
},
"shipment_detail": {
"delivery_partner_name": null,
"tracking_url": null,
"tracking_number": null
},
"skus": [
{
"mrp": 10,
"name": "Iomag-TH Tablet",
"normalized_quantity": 2,
"offered_price": 15.19,
"pack_size_label": "strip of 10 tablets",
"prescription_required": false,
"prescription_status": "Ready for processing",
"prescription_verified": false,
"sku_id": "529785",
"sku_type": "OTC"
},
{
"pack_size_label": "bottle of 200 ml Syrup",
"normalized_quantity": 1,
"offered_price": 109,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "135546",
"name": "Himalaya Liv.52 Syrup",
"sku_type": "OTC",
"mrp": 10
}
],
"updated": 1563366689
}
],
"prescriptions": [
{
"url": "https://url.com",
"status": "In-progress"
}
],
"group_order_id": "PO19719451082",
"user": {
"email": "[email protected]",
"contact_number": '1234567890'
},
"delivery_address": {
"address_type": "home",
"city": "Bengaluru",
"contact_number": "1234567890",
"country": "INDIA",
"landmark": "",
"latitude": 12.8845097,
"locality": null,
"locality2": null,
"longitude": 77.6035522,
"name": "Mr USER1",
"pincode": "560076",
"state": "Karnataka",
"street1": "N",
"street2": "Ranjan11"
},
"merchant_order_id": "PO122434"
}
}
```
Out for delivery (3rd party logistics)
Out for delivery (3rd party logistics)
```
{
"result": {
"grouped_orders": [
{
"created": 1563366689,
"eta": {
"eta_from": 0, // could have float/Decimal value
"eta_to": 1604954709 // could have float/Decimal value
},
"invoice": {
"shipping": "url",
"order": "url"
},
"invoice_data": {
"013879376": {
"skus": [
{
"mrp": 347,
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin",
"quantity": 1,
"onemg_sku_id": "232747"
}
],
"doctor_name": "Hiramay Pushpayastha",
"patient_name": "Rishiraj",
"invoice_url": "https://url.com"
}
},
"order_id": "PO30920415645018",
"order_status": {
"status_id": 30,
"sub_title": "Order Dispatched",
"title": "Out for Delivery"
},
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 347,
"cashback_earned": 0,
"cashback_refund_due": 0,
"coupon_discount": 0,
"current_mrp": 347,
"discounted_mrp": 326,
"mode": "ONLINE",
"online_collected": 376,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 376,
"shipping_charges": 25,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": []
},
"shipment_detail": {
"delivery_partner_name": "XpressBeesCP",
"tracking_number": "131",
"tracking_url": "https://url/?waybill=131"
},
"skus": [
{
"mrp": 10,
"pack_size_label": "bottle of 100 ml Lotion",
"normalized_quantity": 1,
"offered_price": 326,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "232747",
"sku_type": "OTC",
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin"
}
],
"updated": 1563366689
}
],
"prescriptions": [
{
"url": "https://url.com",
"status": "In-progress"
}
],
"group_order_id": "PO30920415645018",
"user": {
"email": "[email protected]",
"contact_number": '1234567890'
},
"delivery_address": {
"address_type": "home",
"city": "Bengaluru",
"contact_number": "1234567890",
"country": "INDIA",
"landmark": "",
"latitude": 12.8845097,
"locality": null,
"locality2": null,
"longitude": 77.6035522,
"name": "Mr USER1",
"pincode": "560076",
"state": "Karnataka",
"street1": "N",
"street2": "Ranjan11"
},
"merchant_order_id": "PO122434"
}
}
```
Out for delivery (in-house delivery)
Out for delivery (in-house delivery)
```
{
"result":{
"grouped_orders":[
{
"created":1563366689,
"eta":{
"eta_from":0,
"eta_to":1604954709 // could have float/Decimal value
},
"invoice":{
"shipping":"url",
"order":"url"
},
"invoice_data":{
"013879376":{
"skus":[
{
"mrp":347,
"name":"Cetaphil Moisturising Lotion - Dry Sensitive Skin",
"quantity":1,
"onemg_sku_id":"232747"
}
],
"doctor_name":"Hiramay Pushpayastha",
"patient_name":"Rishiraj",
"invoice_url":"https://url.com"
}
},
"order_id":"PO30920415645018",
"order_status":{
"status_id":30,
"sub_title":"Order Dispatched",
"title":"Out for Delivery"
},
"payment_summary":{
"additional_charges":[
],
"allow_payment_retry":false,
"amount_payable":0,
"amount_collected":0,
"cart_mrp":347,
"cashback_earned":0,
"cashback_refund_due":0,
"coupon_discount":0,
"current_mrp":347,
"discounted_mrp":326,
"mode":"ONLINE",
"online_collected":376,
"online_pending_amount":0,
"online_refund_due":0,
"online_refund_initiated":0,
"order_mrp":376,
"shipping_charges":25,
"total_refund_due":0,
"total_refunded_amount":0,
"vas":[
]
},
"shipment_detail":{
"delivery_partner_name":"1mg",
"delivery_contact_name":"Test",
"delivery_contact":"9876543210"
},
"skus":[
{
"mrp":10,
"pack_size_label":"bottle of 100 ml Lotion",
"normalized_quantity":1,
"offered_price":326,
"prescription_verified":false,
"prescription_required":false,
"prescription_status":"Ready for processing",
"sku_id":"232747",
"sku_type":"OTC",
"name":"Cetaphil Moisturising Lotion - Dry Sensitive Skin"
}
],
"updated":1563366689
}
],
"prescriptions":[
{
"url":"https://url.com",
"status":"In-progress"
}
],
"group_order_id":"PO30920415645018",
"user":{
"email":"[email protected]",
"contact_number":"1234567890"
},
"delivery_address":{
"address_type":"home",
"city":"Bengaluru",
"contact_number":"1234567890",
"country":"INDIA",
"landmark":"",
"latitude":12.8845097,
"locality":null,
"locality2":null,
"longitude":77.6035522,
"name":"Mr USER1",
"pincode":"560076",
"state":"Karnataka",
"street1":"N",
"street2":"Ranjan11"
},
"merchant_order_id":"PO122434"
}
}
```
Order Cancelled
Order Cancelled
```
{
"result":{
"grouped_orders":[
{
"created":1563366689,
"eta":{
"eta_from":0,
"eta_to":1604954709 // could have float/Decimal value
},
"invoice":{
"shipping":"url",
"order":"url"
},
"invoice_data":{
"013879376":{
"skus":[
{
"mrp":347,
"name":"Cetaphil Moisturising Lotion - Dry Sensitive Skin",
"quantity":1,
"onemg_sku_id":"232747"
}
],
"doctor_name":"Hiramay Pushpayastha",
"patient_name":"Rishiraj",
"invoice_url":"https://url.com"
}
},
"order_id":"PO30920415645018",
"order_status":{
"status_id":30,
"sub_title":"Order Dispatched",
"title":"Out for Delivery"
},
"payment_summary":{
"additional_charges":[
],
"allow_payment_retry":false,
"amount_payable":0,
"amount_collected":0,
"cart_mrp":347,
"cashback_earned":0,
"cashback_refund_due":0,
"coupon_discount":0,
"current_mrp":347,
"discounted_mrp":326,
"mode":"ONLINE",
"online_collected":376,
"online_pending_amount":0,
"online_refund_due":0,
"online_refund_initiated":0,
"order_mrp":376,
"shipping_charges":25,
"total_refund_due":0,
"total_refunded_amount":0,
"vas":[
]
},
"shipment_detail":{
"delivery_partner_name":"XpressBeesCP",
"tracking_number":"131",
"tracking_url":"https://url/?waybill=131"
},
"skus":[
{
"mrp":10,
"pack_size_label":"bottle of 100 ml Lotion",
"normalized_quantity":1,
"offered_price":326,
"prescription_verified":false,
"prescription_required":false,
"prescription_status":"Ready for processing",
"sku_id":"232747",
"sku_type":"OTC",
"name":"Cetaphil Moisturising Lotion - Dry Sensitive Skin"
}
],
"updated":1563366689
}
],
"prescriptions":[
{
"url":"https://url.com",
"status":"In-progress"
}
],
"group_order_id":"PO30920415645018",
"user":{
"email":"[email protected]",
"contact_number":"1234567890"
},
"delivery_address":{
"address_type":"home",
"city":"Bengaluru",
"contact_number":"1234567890",
"country":"INDIA",
"landmark":"",
"latitude":12.8845097,
"locality":null,
"locality2":null,
"longitude":77.6035522,
"name":"Mr USER1",
"pincode":"560076",
"state":"Karnataka",
"street1":"N",
"street2":"Ranjan11"
},
"merchant_order_id":"PO122434"
}
}
```
Order Stuck
Order Stuck
```
{
"result":{
"grouped_orders":[
{
"created":1563366689,
"eta":{
},
"invoice":{
},
"invoice_data":{
},
"order_id":"PO30920415645018",
"order_status":{
"status_id":100,
"sub_title":"",
"title":"Order Stuck. Action Required"
},
"payment_summary":{
"additional_charges":[
],
"allow_payment_retry":false,
"amount_payable":0,
"amount_collected":0,
"cart_mrp":697.98,
"cashback_earned":0,
"cashback_refund_due":0,
"coupon_discount":36.71,
"current_mrp":697.94,
"discounted_mrp":681.9,
"mode":"ONLINE",
"online_collected":652.4,
"online_pending_amount":0,
"online_refund_due":0,
"online_refund_initiated":0,
"order_mrp":652.3599999999999,
"shipping_charges":7.17,
"total_refund_due":0,
"total_refunded_amount":0,
"vas":[
]
},
"shipment_detail":{
},
"skus":[
{
"mrp":10,
"pack_size_label":"bottle of 100 ml Lotion",
"normalized_quantity":1,
"offered_price":326,
"prescription_verified":true,
"prescription_required":false,
"prescription_status":"All prescriptions rejected. Waiting for prescription",
"sku_id":"232747",
"sku_type":"OTC",
"name":"Cetaphil Moisturising Lotion - Dry Sensitive Skin"
}
],
"updated":1563366689
}
],
"prescriptions":[
{
"url":"https://url.com",
"status":"Rejected",
"reason":"Invalid Prescription"
}
],
"group_order_id":"PO30920415645018",
"user":{
"email":"[email protected]",
"contact_number":"1234567890"
},
"delivery_address":{
"address_type":"home",
"city":"Bengaluru",
"contact_number":"1234567890",
"country":"INDIA",
"landmark":"",
"latitude":12.8845097,
"locality":null,
"locality2":null,
"longitude":77.6035522,
"name":"Mr USER1",
"pincode":"560076",
"state":"Karnataka",
"street1":"N",
"street2":"Ranjan11"
},
"merchant_order_id":"PO122434"
}
}
```
Delivered
Delivered
```
{
"result": {
"grouped_orders": [
{
"created": 1563366689,
"eta": {
"eta_from": 0,
"eta_to": 1604954709
},
"invoice": {
"shipping": "url",
"order": "url"
},
"invoice_data": {
"013879376": {
"skus": [
{
"mrp": 347,
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin",
"quantity": 1,
"onemg_sku_id": "232747"
}
],
"doctor_name": "Hiramay Pushpayastha",
"patient_name": "Rishiraj",
"invoice_url": "https://url.com"
}
},
"order_id": "PO30920415645018",
"order_status": {
"status_id": 40,
"sub_title": "Delivered",
"title": "Order Delivered"
},
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 347,
"cashback_earned": 0,
"cashback_refund_due": 0,
"coupon_discount": 0,
"current_mrp": 347,
"discounted_mrp": 326,
"mode": "ONLINE",
"online_collected": 376,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 376,
"shipping_charges": 25,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": []
},
"shipment_detail": {
"delivery_partner_name": "1mg",
"delivery_contact": 1234,
"delivery_contact_name": "Test"
},
"skus": [
{
"mrp": 10,
"pack_size_label": "bottle of 100 ml Lotion",
"normalized_quantity": 1,
"offered_price": 326,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "232747",
"sku_type": "OTC",
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin"
}
],
"updated": 1563366689
}
],
"prescriptions": [
{
"url": "https://url.com",
"status": "In-progress"
}
],
"group_order_id": "PO30920415645018",
"user": {
"email": "[email protected]",
"contact_number": "1234567890"
},
"delivery_address": {
"address_type": "home",
"city": "Bengaluru",
"contact_number": "1234567890",
"country": "INDIA",
"landmark": "",
"latitude": 12.8845097,
"locality": null,
"locality2": null,
"longitude": 77.6035522,
"name": "Mr USER1",
"pincode": "560076",
"state": "Karnataka",
"street1": "N",
"street2": "Ranjan11"
},
"merchant_order_id": "PO122434"
}
}
```
Return and Refund
Return and Refund
```
{
"result": {
"grouped_orders": [
{
"created": 1563366689,
"eta": {
"eta_from": 0,
"eta_to": 1604954709
},
"invoice": {
"shipping": "url",
"order": "url"
},
"invoice_data": {
"013879376": {
"skus": [
{
"mrp": 347,
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin",
"quantity": 1,
"onemg_sku_id": "232747"
}
],
"doctor_name": "Hiramay Pushpayastha",
"patient_name": "Rishiraj",
"invoice_url": "https://url.com"
}
},
"order_id": "PO30920415645018",
"order_status": {
"status_id": 140,
"sub_title": "Refund will be processed after your item(s) are picked up",
"title": "Refund Request Raised"
},
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 347,
"cashback_earned": 0,
"cashback_refund_due": 0,
"coupon_discount": 0,
"current_mrp": 347,
"discounted_mrp": 326,
"mode": "ONLINE",
"online_collected": 376,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 376,
"shipping_charges": 25,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": []
},
"shipment_detail": {
"delivery_partner_name": "1mg",
"delivery_contact": 1234,
"delivery_contact_name": "Test"
},
"skus": [
{
"mrp": 10,
"pack_size_label": "bottle of 100 ml Lotion",
"normalized_quantity": 1,
"offered_price": 326,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "232747",
"sku_type": "OTC",
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin"
}
],
"updated": 1563366689
}
],
"prescriptions": [
{
"url": "https://url.com",
"status": "In-progress"
}
],
"group_order_id": "PO30920415645018",
"user": {
"email": "[email protected]",
"contact_number": "1234567890"
},
"delivery_address": {
"address_type": "home",
"city": "Bengaluru",
"contact_number": "1234567890",
"country": "INDIA",
"landmark": "",
"latitude": 12.8845097,
"locality": null,
"locality2": null,
"longitude": 77.6035522,
"name": "Mr USER1",
"pincode": "560076",
"state": "Karnataka",
"street1": "N",
"street2": "Ranjan11"
},
"merchant_order_id": "PO122434"
}
}
```
Request for Return & Refund
Request for Return & Refund
```
{
"result": {
"grouped_orders": [
{
"created": 1563366689,
"eta": {
"eta_from": 0,
"eta_to": 1604954709
},
"invoice": {
"shipping": "url",
"order": "url"
},
"invoice_data": {
"013879376": {
"skus": [
{
"mrp": 347,
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin",
"quantity": 1,
"onemg_sku_id": "232747"
}
],
"doctor_name": "Hiramay Pushpayastha",
"patient_name": "Rishiraj",
"invoice_url": "https://url.com"
}
},
"order_id": "PO30920415645018",
"order_status": {
"status_id": 140,
"sub_title": "Refund will be processed after your item(s) are picked up",
"title": "Refund Request Raised"
},
"payment_summary": {
"additional_charges": [],
"allow_payment_retry": false,
"amount_payable": 0,
"amount_collected": 0,
"cart_mrp": 347,
"cashback_earned": 0,
"cashback_refund_due": 0,
"coupon_discount": 0,
"current_mrp": 347,
"discounted_mrp": 326,
"mode": "ONLINE",
"online_collected": 376,
"online_pending_amount": 0,
"online_refund_due": 0,
"online_refund_initiated": 0,
"order_mrp": 376,
"shipping_charges": 25,
"total_refund_due": 0,
"total_refunded_amount": 0,
"vas": []
},
"shipment_detail": {
"delivery_partner_name": "1mg",
"delivery_contact": 1234,
"delivery_contact_name": "Test"
},
"skus": [
{
"mrp": 10,
"pack_size_label": "bottle of 100 ml Lotion",
"normalized_quantity": 1,
"offered_price": 326,
"prescription_verified": false,
"prescription_required": false,
"prescription_status": "Ready for processing",
"sku_id": "232747",
"sku_type": "OTC",
"name": "Cetaphil Moisturising Lotion - Dry Sensitive Skin"
}
],
"updated": 1563366689
}
],
"prescriptions": [
{
"url": "https://url.com",
"status": "In-progress"
}
],
"group_order_id": "PO30920415645018",
"user": {
"email": "[email protected]",
"contact_number": "1234567890"
},
"delivery_address": {
"address_type": "home",
"city": "Bengaluru",
"contact_number": "1234567890",
"country": "INDIA",
"landmark": "",
"latitude": 12.8845097,
"locality": null,
"locality2": null,
"longitude": 77.6035522,
"name": "Mr USER1",
"pincode": "560076",
"state": "Karnataka",
"street1": "N",
"street2": "Ranjan11"
},
"merchant_order_id": "PO122434"
}
}
```